﻿<%@ Page Language="C#" MasterPageFile="~/Manage/MainPage.master"  AutoEventWireup="true" CodeFile="UsersManage.aspx.cs" Inherits="Manage_UsersManage" %>
<%@ Import Namespace="Shopping.Common" %>
<%@ Import Namespace="Shopping.Model" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Content" Runat="Server">
<script type="text/javascript" src="/Manage/Js/UsersManage.js"></script>
<script type="text/javascript">

</script>

<table width="99%" border="0" cellspacing="0" cellpadding="0" class="table" align="center">
  <tr>
    <td align="center"><img src="/Manage/Images/sousuo.gif" />会员名称：
      <input name="txtKeyWords" type="text" id="txtKeyWords" size="25"  class="border6" value="<%=q.KeyWords %>" />
      注册日期：
      <input name="txtStartDate" type="text" id="txtStartDate"    size="12" maxlength="12" readonly="readonly"
                        onfocus="new WdatePicker({el:this})"  class=" Wdate" style="cursor: hand" value="<%=q.StartDate %>" />
      -
      <input name="txtEndDate" type="text" id="txtEndDate"  size="12" maxlength="12" readonly="readonly"
                        onfocus="new WdatePicker({el:this})"  class=" Wdate" style="cursor: hand"  value="<%=q.EndDate %>"/>
      状态：
      <select name="ddlStatus" id="ddlStatus">
        <option value="">-全部-</option>
        <option value="正用" <%=q.Status == UserStatus.正用.ToString()?"Selected":"" %>>正用</option>
        <option value="未激活" <%=q.Status == UserStatus.未激活.ToString()?"Selected":"" %>>未激活</option>
      </select>
      <input name="btnSearch" type="button" id="btnSearch" value="执行搜索" class="btn2" onclick="GoToSearch();" />
	   [ <a href="UsersManage.aspx" class="red bold">查看全部</a> ] 
	   </td>
  </tr>
</table>
<table width="99%" border="0" cellspacing="0" cellpadding="0" class="table" align="center">
  <tr>
    <td colspan="9" align="left"  class="HeadTitle">&gt;&gt;会员管理</td>
  </tr>
  <tr class="TableHeadRow">
    <td width="60" align="center">序号</td>
    <td align="left">会员名称</td>
    <td align="left">邮箱地址</td>
    <td width="80" align="center">积分</td>
    <td width="100" align="center">会员级别</td>
    <td width="100" align="center">登陆次数</td>
    <td width="150" align="center">上次登录时间</td>
    <td width="130" align="center">注册日期</td>
    <td width="200" align="center">管理 </td>
  </tr>
  <%
      if (listOfUsers != null)
      {
          for (int i = 0; i < listOfUsers.Count; ++i)
          {
              Users u = listOfUsers[i];
   %>
  <tr  onmouseover="this.style.backgroundColor='#F2F2F2';" onmouseout="this.style.backgroundColor='#FFFFFF';">
    <td align="center"><%=(q.CurPage-1)*q.PageSize +i+1 %>.</td>
    <td align="left" class="green bold"><%=u.UserName %>(<%=u.UserID %>)</td>
    <td align="left"><%=u.Email %>&nbsp;</td>
    <td align="center"><%=u.Scores %>&nbsp;</td>
    <td align="center">普通会员</td>
    <td align="center"><%=u.Logins %></td>
    <td align="center"><%=u.LastLoginDate.ToString("yyyy-MM-dd HH:mm:ss") %>&nbsp;</td>
    <td align="center"><%=u.RegisterDate.ToString("yyyy-MM-dd HH:mm:ss") %>&nbsp;</td>
    <td align="center">-- </td>
  </tr>

  <%} %>
  <tr>
    <td colspan="9" align="center">
    <span class="page" >
       <%=Utility.GetPageLine(Utility.GetWebPageUrlNoCurPage(), q.CurPage, q.PageSize,10, q.TotalCount)%>        </span>        </td>
    </tr>
    <%}
      else
      { %>
       <tr>
    <td colspan="9" align="center">[ <span class="red bold">系统未找到任何会员信息!</span> ]</td>
    </tr>

    <%} %>
</table>
</asp:Content>
